package org.jcut.controller;

import org.jcut.data.Data;
import org.jcut.service.PackService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/pack")
public class PackController {
	@Autowired
	private Data data;
	@Autowired
	private PackService service;
	@RequestMapping("/select")
	public Data select() {
		data.setMsg("查询成功");
		data.setStatus("1");
		data.setData(service.select());
		return data;
	}
}
